cya=10#120g采样总次数
cyb=3#600g采样总次数
#cyc=0
#cyd=1#西北骄采样总次数
#cye=1#雀巢摩爵采样总次数
#cyf=5#青海百年酸奶采样总次数
zong=1220#总金额

lpa=[i for i in range(5,31)]
lpb=[i for i in range(21,101)]
#lpe=[i for i in range(5,21)]
#lpf=[i for i in range(5,16)]

for a in range(0,cya+1):
  for b in range(0,cyb+1):
    for pa in lpa:
      for pb in lpb:
        if (a+(cya-a)*5)*pa+(b+(cyb-b)*5)*pb==zong:
          print("a单价",pa,"，有",a,"次一份采样、",(cya-a),"次五份采样；b单价",pb,"，有",b,"次一份采样、",(cyb-b),"次五份采样")

          
